package asteroids.expression;
import asteroids.model.programs.*;

public class And extends BooleanOperator {

	public And(Expression left, Expression right) {
		super(left,right);
	}
	
	@Override
	public boolean getValue(Program program) {
		this.updateArguments(program);
		return (((BooleanExpression)this.arg1).getValue(program) && ((BooleanExpression)this.arg2).getValue(program));
	}
}